# 登录几口类
import requests

class IhrmLogApi():
    @classmethod
    def re_log(cls,data_log):
        url_log = "http://127.0.0.1:8080/api/sys/login"  #登录接口
        headers = {
            "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
                          "Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53"
        }
        reg = requests.post(url=url_log,headers=headers,json=data_log)
        return reg